package br.usp.ime.macmovel.android;

import java.util.Calendar;
import java.util.Date;

public class DateProvider {
	public Date getCurrentDate() {
		return new Date();	
	}
	public int getHours() {
		Date now = new Date();
		Calendar calendar = Calendar.getInstance();
		calendar.setTime(now);
		int hours = calendar.get(Calendar.HOUR_OF_DAY);
		return hours;
	}
	public int getDayOfWeek() {
		Date now = new Date();
		Calendar calendar = Calendar.getInstance();
		calendar.setTime(now);
		return calendar.get(Calendar.DAY_OF_WEEK);
	}
}
